﻿using Gp.Scripts.GUI;

namespace Gp.Scripts.Core
{
    [AutoLoad(typeof(UISystemConfig))]
    public class UISystemConfigImpl : UISystemConfig
    {
        private void SetPanelConfig()
        {
            AddPanel<BattlePanel>(ConstPanelId.BattlePanel, UIPanelLayer.COMMON);
            AddPanel<PanelMain>(ConstPanelId.MainPanel, UIPanelLayer.COMMON);
            AddPanel<PanelStartScreen>(ConstPanelId.GameEntryPanel, UIPanelLayer.COMMON);
            
            AddPanel<CommonPopup>(ConstPopupId.CommonPopup, UIPanelLayer.POPUP);
        }


        private void SetWidgetConfig()
        {
            
        }
        

        protected override void LoadConfigs()
        {
            SetPanelConfig();
            SetWidgetConfig();
        }
    }
}